package com.sys.service;

import org.springframework.stereotype.Component;

//把降级方法统一抽出来
@Component
public class PaymentHystrixServiceFallBack implements PaymentHystrixService{

    @Override
    public String paymentInfo_OK(Integer id) {
        return "统一降级方法 paymentInfo_OK";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "统一降级方法 paymentInfo_TimeOut";
    }
}
